<?php
class NotesWidget extends CWidget
{
    public $model;
    public function init()
    {
        // this method is called by CController::beginWidget()
    }
 
    public function run()
    {
        // this method is called by CController::endWidget()
        $note=$this->newNote($this->model);
        $this->render('notesWidget',array('model'=>$this->model,'note'=>$note));
    }
}
/* vim:set ai sw=4 sts=4 et fdm=marker fdc=4: */ 
?>
